<?php

/*
Delete Category (admin_delete_cat.php)
*/

$page_title = "Delete Category";
$rank_check = 7;
include "../header.inc.php";

$findCategories = mysql_query("SELECT * FROM forum_cats2 WHERE game = '$game'");
while ($getCats = mysql_fetch_array($findCategories))
{	
	$categoryList .= "<option value=$getCats[id]>$getCats[cat_name]</option>";
}

print "$openHTML";

ECHO <<<END

<FORM ACTION="admin_delete_cat.pro.php?game=$game" METHOD=POST> <CENTER><TABLE BGCOLOR="$tableOutline"
CELLSPACING=1 CELLPADDING=0 WIDTH=520> <TR BGCOLOR="$topAndBottomBG"> <TD COLSPAN=2 HEIGHT=50>
<CENTER><FONT SIZE="+2" COLOR="$topAndBottomText">--Delete Category--</FONT></CENTER> </TD> </TR>
<TR BGCOLOR="$maincellColor"> <TD WIDTH=128 HEIGHT=40> <P>Delete Category</P> </TD> <TD
HEIGHT=40> <P><FONT SIZE="-1">&nbsp;<select name=delete_cat>$categoryList</select></FONT></P> </TD> </TR> <TR> <TD
COLSPAN=2 HEIGHT=30 BGCOLOR="$topAndBottomBG"> <CENTER><FONT SIZE="-1" COLOR="$topAndBottomText"><I><INPUT
TYPE=submit NAME=Submit VALUE="Delete Category!!"></I></FONT></CENTER> </TD> </TR>
</TABLE> </CENTER> </FORM>

END;

print "$closeHTML";
?>
